home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS13.ADF
/
FutureSound
/
sounderrors.c
< prev
next >
Wrap
C/C++ Source or Header
|
1986-08-05
|
808b
|
37 lines
/* SoundErrors.c */
/* Error handling routine for FutureSound auxiliary library */
/* Changed, 6/22/86 by John Foust */
/* removed call to printf() for 'fs.library' code - jjf 6/21/86 */
/* changed return value of Error() from 0 to ErrFlag - jjf 6/21/86 */
#include "types.h"
#include "SoundErrors.h"
/* added this variable - jjf */
/* This is a way of getting the error code back to the user */
long GlobalError;
char *ErrMsg[] = {
"File Open Failed",
"File Read Error",
"Device Open Failed",
"Create Port Failed",
"Not Enough Memory for IORequest",
"BeginIO Failed",
"IFF Format Error"
};
UWORD Error(ErrFlag,ProgMsg)
int ErrFlag;
char *ProgMsg;
{
/* removed printf() call - jjf */
GlobalError = ErrFlag;
/* printf("%s - %s\n",ErrMsg[ErrFlag],ProgMsg); */
return(0);
}